<?php

namespace app\validate\api\housing;

use think\Validate;

class HousingSource2Validate extends Validate
{


	//商铺买卖
	protected $rule = [

		'shop_type'   => 'require',
		'facing_street' => 'require',
		'width_building_area'   => 'require',
		'building_floor_height'   => 'require',
		'building_depth'   => 'require',
		'suitable_for_business_form'   => 'require',
		'management_status'   => 'require',
		'architecture_area'   => 'require',
		'yield'   => 'require',
		'negotiate'   => 'require',
		'decorate'   => 'require',
		'passenger_flow_crowd' => 'require',
		'management_fee' => 'require',
		'property' => 'require',
//		'unit_price' => 'require',
//		'total' => 'require',


	];


	protected $message = [
		'shop_type.require' => '商铺类型不能为空',
		'facing_street.require' => '是否临街不能为空',
		'width_building_area.require' => '建筑面宽不能为空',
		'building_floor_height.require' => '建筑层高不能为空',
		'building_depth.require' => '建筑进深不能为空',
		'suitable_for_business_form.require' => '适合业态不能为空',
		'management_status.require' => '经营状态不能为空',
		'architecture_area.require' => '建筑面积不能为空',
		'yield.require' => '投资收益不能为空',
		'negotiate.require' => '是否面议不能为空',
		'decorate.require' => '装修情况不能为空',
		'passenger_flow_crowd.require' => '客流人群不能为空',
		'property.require' => '产权性质不能为空',
		'management_fee.require' => '物业费不能为空',
		'unit_price.require' => '商铺单价不能为空',
		'total.require' => '总价不能为空',

	];

}